/**
 * The database package of the application.
 */
package fr.umlv.m2.android.quizz.database;

/**
 * This class defines the level object.
 * 
 * @author Gambouele Bertrand.
 * @author Viravout Alexandre.
 */
public class Level {
	/**
	 * The level id.
	 */
	private long id;
	/**
	 * The level name.
	 */
	private String name;
	/**
	 * The level number of question.
	 */
	private int nbQuestion;
	
	/**
	 * Create the level object.
	 */
	public Level() {}
	
	/**
	 * Create the level object.
	 * 
	 * @param name the level name.
	 */
	public Level(String name, int nbQuestion) {
		this.name = name;
		this.nbQuestion = nbQuestion;
	}
	
	/**
	 * Sets the level id.
	 * 
	 * @param id the level id.
	 */
	public void setId(long id) {
		this.id = id;
	}
	
	/**
	 * Gets the level id.
	 * 
	 * @return the level id.
	 */
	public long getId() {
		return this.id;
	}
	
	/**
	 * Sets the level name.
	 * 
	 * @param name the level name.
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * Gets the level name.
	 * 
	 * @return the level name.
	 */
	public String getName() {
		return this.name;
	}
	
	/**
	 * Sets the level number of question.
	 * 
	 * @param nbQuestion the number of question.
	 */
	public void setNbQuestion(int nbQuestion) {
		this.nbQuestion = nbQuestion;
	}
	
	/**
	 * Gets the level number of question.
	 * 
	 * @return the number of question.
	 */
	public int getNbQuestion() {
		return this.nbQuestion;
	}
}
